package com.leyou.item.service;

import com.leyou.pojo.Item;
import org.springframework.stereotype.Service;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/03/02 20:18
 * @description:
 */
@Service
public class ItemService {
	public Item add(Item item){
		Item item1 = new Item();
		Integer id = item.getId();
		item1.setId(id);
		String name = item.getName();
		item1.setName(name);
		Long price = item.getPrice();
		item1.setPrice(price);
		return item1;
	}
}
